/* 公共CSS */

// 上间距
.ag-mt20{
  margin-top: 20rpx;
}
.ag-mt30{
  margin-top: 30rpx;
}
.ag-mt40{
  margin-top: 40rpx;
}
.ag-mt50{
  margin-top: 50rpx;
}
.ag-mt60{
  margin-top: 60rpx;
}

// 左间距
.ag-ml20{
  margin-left: 20rpx;
}

.ag-spacer10{
  height: 10rpx;
}
.ag-spacer20{
  height: 20rpx;
}
.ag-spacer40{
  height: 40rpx;
}
.ag-spacer30{
  height: 30rpx;
}

.ag-divider{
  height: 1px;
  background-color: #cccccc;
  margin:30rpx 0;
  transform: scaleY(.5);
}

// 扩展cu-btn

.cu-btn.lg{
  font-size: 32rpx;
  height: 78rpx;
}
.cu-btn.primary{
  background-color: #3d85db;
  color: white;
  border: solid 1px #3d85db;
  box-sizing: border-box;
  box-shadow: 0px 0px 4rpx 0px rgba(0, 0, 0, 0.2);
}
.cu-btn.primary.plain{
  color: #3d85db;
  border: solid 1px #3d85db;
  background-color: white;
}
.cu-btn.primary.plain.disabled{
  border: solid 1px #bfbfbf;
  color: #cccccc;
  pointer-events: none;
}


.ag-triangle-down{
  width: 0;
  height: 0;
  border-top: 16rpx solid white;
  border-right: 16rpx solid transparent;
  border-left: 16rpx solid transparent;
  display: block;
  position: static;
  margin-left: 6rpx;
}
.ag-triangle-up{
  width: 0;
  height: 0;
  border-bottom: 16rpx solid white;
  border-right: 16rpx solid transparent;
  border-left: 16rpx solid transparent;
  display: block;
  position: static;
  margin-left: 6rpx;
}

// 顶部背景
.ag-topbg{
  height: 118rpx;
  position: relative;
  overflow: hidden;

  &::before{
    background-color: #3d85db;
    width: 3000rpx;
    height: 3000rpx;
    bottom: 0;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    content: "";
    z-index: 0;
  }
}


.ag-womarker{
  width: 62rpx;
	height: 62rpx;
  border: solid 1px #3d85db;
  border-radius: 50%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: #3d85db;
  font-size: 35rpx;
  flex-shrink: 0;
}

// 状态标签
.ag-status-tag{

  &.primary{
    background-color: #3d85db;
  }

  border-radius: 12rpx;
  padding: 0 24rpx;
  margin-left: 18rpx;
  width: 106rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24rpx;
  white-space: nowrap;
  border: solid 1px #3d85db;
  & > text{
    color: #3d85db;
    font-size: 20rpx;
    transform: scale(.6);
    transform-origin: center;
  }
  &.primary > text{
    color: white;
  }
  &--normal{
    border-color: #3d85db;
    text{
      color: #3d85db;
    }
    &.primary{
      color: white;
    }
  }
  &--error{
    border-color:#ff0000;
    text{
      color: #ff0000;
    }
    &.primary{
      color: white;
    }
  }
}

// 通用 AG-CELL样式
.ag-cellgroup{
  display: flex;
  flex-direction: row;
  .ag-cell{
    flex: 1;
  }
}
.ag-cell{
  color: #202020;
  font-size: 24rpx;
  display: flex;
  flex-direction: row;
  margin-top: 15rpx;
  &__label,
  &__value{
    color: #202020;
    line-height: 34rpx;
    font-size: 24rpx;
  }
  &__label{
    margin-right: 20rpx;
    text{
      opacity: .6;
    }
    image{
      width: 21rpx;
      position: relative;
      top: 3rpx;
    }
  }
  &__value{
    flex: 1;
    text{
      margin-right: 19rpx;
    }
  }
}

// 字体颜色
.ag-color-primary{
  color: #3d85db;
}
